package SEDay12;

public class IceBox extends Electric{
    private String motorType;
    private String washCapacity;

    public IceBox(String brand, String model, String color, double price, String motorType, String washCapacity) {
        super(brand, model, color, price);
        this.motorType = motorType;
        this.washCapacity = washCapacity;
    }

    public String getMotorType() {
        return motorType;
    }

    public void setMotorType(String motorType) {
        this.motorType = motorType;
    }

    public String getWashCapacity() {
        return washCapacity;
    }

    public void setWashCapacity(String washCapacity) {
        this.washCapacity = washCapacity;
    }

    @Override
    public void print() {
        super.print();
        System.out.println("、"+motorType+"、"+ washCapacity);
    }
}
